<?php
$aParams = Phpfox::getLib('url')->getParams();
$mUser = $aParams['req1'];
$aUserSkype = array();
$aUserSkype = Phpfox::getService('user')->get($mUser, false);
$skype = array();
$skype = Phpfox::getService('tnskype')->getSkype($aUserSkype['user_id']);  
if(count($skype) > 0){
$phrase_skype = Phpfox::getPhrase('tnskype.skype');  
if($skype['active'] && $skype['skype_account'] != '' && Phpfox::getUserParam('tnskype.can_have_skype_account')) {
?>
<div class="info">
		<div class="info_left">
<?php echo $phrase_skype;?>:
		</div>	
		<div class="info_right">
		<a href="skype:<?php echo $skype['skype_account'];?>?chat">
			<img src="http://mystatus.skype.com/smallclassic/<?php echo $skype['skype_account'];?>" width="114" height="20">
		</a>
		
		</div>	
</div>
<?php }}?>